package com.sx.medicinecard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sx.medicinecard.entity.SxSignContract;
import com.sx.medicinecard.entity.sendMsg.CancelSignVipExpireSendMsg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import java.time.LocalDateTime;
import java.util.List;


/**
 * 签约表(SxSignContract)表数据库访问层
 *
 * @author makejava
 * @since 2024-03-30 15:21:28
 */
@Mapper
public interface SxSignContractMapper extends BaseMapper<SxSignContract> {

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities List<SxSignContract> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<SxSignContract> entities);


    List<CancelSignVipExpireSendMsg> getCancelSignVipExpire();

    SxSignContract getSignInfo(@Param("yuankeOrderNo") String yuankeOrderNo);

    List<SxSignContract> getList(@Param("productType") String productType,@Param("number") Integer number);
}

